package StudyCode.summary.BufferAndChannel;

import java.nio.ByteBuffer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetDoubleFromByteBuffer {
	public static void main(String[] args) {
		ByteBuffer buf = ByteBuffer.allocate(100);
		buf.putDouble(123);
		buf.flip();

		double c = buf.getDouble();
		System.out.println("从 ByteBuffer 获取 double:" + c);
	}
}
